//
// Decompiled by Jadx - 395ms
//
package fh;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.t;
import cc.c;
import fg.x;
import fi.e;
import fi.w;
import fm.g;
import fn.b;
import fn.j;
import fn.y;
import gc.ak;
import gc.ci;
import gc.co;
import gc.cs;
import gc.z;
import gf.k;
import java.util.HashMap;
import java.util.List;
import me.plusne.MainActivity;
import me.plusne.common.Http.Home;
import me.plusne.common.Json.JsonHookStatic;
import me.plusne.common.Json.JsonWxMessage;
import me.plusne.common.Json.Soul.SoulUpdate;
import r.f;
import s.ao;
import s.i;
import s.m;
import s.p;

public final class a implements View.OnClickListener {
    public final int a;
    public final Object b;

    public a(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    @Override
    public final void onClick(View view) {
        f i;
        String str;
        int i2 = this.a;
        Object obj = this.b;
        switch (i2) {
            case 0:
                z.ef(((g) obj).d);
                return;
            case 1:
                int i3 = k.a;
                cs csVar = new cs("/im/conversationActivity");
                csVar.cu("userIdEcpt", z.do(((SoulUpdate) obj).getUserId()));
                csVar.cv();
                return;
            case 2:
                int i4 = x.a;
                String userName = ((JsonWxMessage) obj).getUserName();
                int i5 = k.cp;
                JsonHookStatic jsonHookStatic = y.by;
                Intent intent = new Intent(jsonHookStatic.getActivity(), j.ak("com.tencent.mm.ui.chatting.ChattingUI"));
                intent.putExtra("Chat_User", userName);
                intent.putExtra("finish_direct", true);
                jsonHookStatic.getActivity().startActivity(intent);
                return;
            case 3:
                ci ciVar = (ci) obj;
                if (TextUtils.isEmpty(ciVar.c)) {
                    i = f.i();
                    i.j();
                    str = "获取位置失败";
                } else {
                    j.ai(ciVar.c);
                    i = f.i();
                    i.n();
                    str = "已复制:" + ciVar.c;
                }
                i.l(str);
                return;
            case 4:
                c cVar = (c) obj;
                HashMap hashMap = co.a;
                b.l(((EditText) cVar.i).getText().toString(), "backup_user");
                b.l(((EditText) cVar.h).getText().toString(), "backup_pass");
                b.l(((EditText) cVar.g).getText().toString(), "backup_host");
                co.h();
                List list = (List) z.dj(j.ak("cn.soulapp.android.component.square.service.ChatService"), "getRecentConversationList", new Object[0]);
                JsonHookStatic jsonHookStatic2 = y.by;
                new f(jsonHookStatic2.getActivity()).l("获取聊天列表信息,请稍后....");
                fi.y.e(jsonHookStatic2.getActivity());
                new Thread((Runnable) new ak(1, list)).start();
                return;
            case 5:
                ComponentName componentName = new ComponentName("me.plusne", MainActivity.class.getName());
                Intent intent2 = new Intent();
                Bundle bundle = new Bundle();
                bundle.putString("typeState", "reg");
                intent2.putExtras(bundle);
                intent2.setComponent(componentName);
                ((Activity) obj).startActivity(intent2);
                return;
            case 6:
                s.j jVar = (s.j) obj;
                int i6 = jVar.d;
                Activity activity = jVar.a;
                if (i6 < 1 && i6 != -1) {
                    androidx.activity.b.r(activity, "没有更多了");
                    ((TextView) jVar.b.d).setVisibility(8);
                    return;
                }
                fi.y.e(activity);
                fg.a aVar = jVar.c;
                t.c().j(((Home) dq.b.b(Home.class)).queryHelp((int) aVar.getItemId(aVar.getItemCount() - 1)).subscribeWith(new i(jVar, activity)));
                return;
            case 7:
                ((m) obj).a.az();
                return;
            case 8:
                ((p) obj).b.az();
                return;
            default:
                ao aoVar = (ao) obj;
                Activity activity2 = aoVar.e;
                w wVar = new w(activity2);
                View inflate = LayoutInflater.from(activity2).inflate(-2113142750, (ViewGroup) null, false);
                int i7 = 0x7f820045;
                if (((LinearLayout) androidx.constraintlayout.widget.i.cg(0x7f820045, inflate)) != null) {
                    i7 = 0x7f82004d;
                    TextView textView = (TextView) androidx.constraintlayout.widget.i.cg(0x7f82004d, inflate);
                    if (textView != null) {
                        i7 = 0x7f820098;
                        TextView textView2 = (TextView) androidx.constraintlayout.widget.i.cg(0x7f820098, inflate);
                        if (textView2 != null) {
                            i7 = 0x7f820099;
                            TextView textView3 = (TextView) androidx.constraintlayout.widget.i.cg(0x7f820099, inflate);
                            if (textView3 != null) {
                                i7 = 0x7f82009a;
                                EditText editText = (EditText) androidx.constraintlayout.widget.i.cg(0x7f82009a, inflate);
                                if (editText != null) {
                                    i7 = 0x7f82009f;
                                    TextView textView4 = (TextView) androidx.constraintlayout.widget.i.cg(0x7f82009f, inflate);
                                    if (textView4 != null) {
                                        i7 = 0x7f820112;
                                        ImageView imageView = (ImageView) androidx.constraintlayout.widget.i.cg(0x7f820112, inflate);
                                        if (imageView != null) {
                                            i7 = 0x7f8201da;
                                            EditText editText2 = (EditText) androidx.constraintlayout.widget.i.cg(0x7f8201da, inflate);
                                            if (editText2 != null) {
                                                i7 = 0x7f8201ff;
                                                TextView textView5 = (TextView) androidx.constraintlayout.widget.i.cg(0x7f8201ff, inflate);
                                                if (textView5 != null) {
                                                    LinearLayout linearLayout = (LinearLayout) inflate;
                                                    cc.b bVar = new cc.b(linearLayout, textView, textView2, textView3, editText, textView4, imageView, editText2, textView5);
                                                    wVar.bj(e.VIEW);
                                                    wVar.bi("新功能提交");
                                                    wVar.ar = linearLayout;
                                                    float f = 25;
                                                    r.e.d(-2113535903, f, textView4);
                                                    r.e.d(-2113535903, f, textView2);
                                                    r.e.d(-2113535899, f, editText2);
                                                    r.e.d(-2113535899, f, textView);
                                                    r.e.d(-2113535899, f, editText);
                                                    editText.setHint("请详细说明需要添加功能的过程步骤、预期效果，以及您为什么需要此功能.");
                                                    textView3.setText("涉及金钱或金币等功能将不会通过审核(如果提交App和描述功能不相同,会永久禁止账号提交新功能)");
                                                    editText2.setHint("功能标题");
                                                    textView4.setText("提交");
                                                    textView4.setOnClickListener(new g(aoVar, bVar, wVar, 5));
                                                    textView2.setText("取消");
                                                    textView2.setOnClickListener(new fi.m(9, wVar));
                                                    wVar.bk();
                                                    textView.setText("选择提交功能的App");
                                                    textView.setOnClickListener(new fg.t(15, aoVar, bVar));
                                                    return;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i7)));
        }
    }
}
